<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>运城市安全生产隐患排查治理信息系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath%>/css/style.css" rel="stylesheet" type="text/css"/>
	<script src="<%=basePath%>/js/js.js" type="text/javascript"></script>
	<script type="text/javascript">
		function inrandRefresh(){
	   		var inrandSpanM = document.getElementById("inrandSpan");
	   		inrandSpanM.innerHTML='<img src="<%=basePath%>/image.jsp" onclick="javascript:inrandRefresh();" style="cursor:hand" alt="看不清，换一张图片"/>';
	   	}
	   	function checkspace(checkstr) {
			var str = '';
			for(i = 0; i < checkstr.length; i++) {
				str = str + ' ';
			}
			return (str == checkstr);
		}
		function check(){
			if(checkspace(document.pwdform.oldPwd.value))  {		
				alert("对不起，原密码不能为空，请重新输入！");
				document.pwdform.oldPwd.focus();
				return false;
			}	
			if(checkspace(document.pwdform.newPwd.value))  {		
				alert("对不起，新密码不能为空，请重新输入！");
				document.pwdform.newPwd.focus();
				return false;
			}
			if(document.pwdform.newPwd.value.length<6)  {		
				alert("对不起，请输入6位以上密码！");
				document.pwdform.newPwd.focus();
				return false;
			}
			if(document.pwdform.newPwd.value!=document.pwdform.newPwd2.value)  {		
				alert("对不起，两次输入密码不同，请重新输入！");
				document.pwdform.newPwd.focus();
				return false;
			}
			return true;
		}
	</script>
  </head>
  
 <body>
<div id="allbody">
	<div class="head">
		<iframe src="<%=basePath%>/head.jsp" width="1160" height="218" scrolling="no" frameborder="0" ></iframe>
	</div>
	<div class="con">
		<div class="left">
			<div class="left_info">
				<iframe src="<%=basePath%>/left_info.jsp" width="244" height="250" id="iframeleft_top"  onLoad="iFrameHeight()"  scrolling="no" frameborder="0" ></iframe>
			</div>
			<div class="left_link">
				<iframe src="<%=basePath%>/corp_left.jsp" width="244" height="200" id="iframeleft_link"  onLoad="iFrameHeight2()" scrolling="no" frameborder="0" ></iframe>
			</div>
		</div>
		<div class="right">
			<div class="right_map"><a href="<%=basePath%>/corp/index.action">首页</a> &gt; <span>修改密码</span></div>
			<div class="right_list">
				<form name="pwdform" action="<%=basePath%>/enterprise/corp_updatePwd.action" method="post">
					<table  border="0" cellpadding="0" cellspacing="0" class="infolist" style=" width:800px;margin-left:58px!important;margin-left:2px;margin-top:10px;background-color:#ffffff;">
						<tr>
							<td class="info_tit" colspan="2" style="text-align:center;font-weight:bold">修改密码</td>
						</tr>
						<tr>
							<td class="info_tit" width="130">请输入原来密码：</td>
							<td width="589"><input name="oldPwd" type="password" class="input_info1" value="" id="oldPwd"/><label class="note4">*</label> <font color="red"></font> </td>
						</tr>
						<tr>
							<td class="info_tit">请输入新密码：</td>
							<td><input name="newPwd" type="password" class="input_info1" value="" id="newPwd"/><label class="note4">*</label></td>
						</tr>
						<tr>
							<td class="info_tit">再次输入新密码：</td>
							<td><input name="newPwd2" type="password" class="input_info1" value="" id="newPwd2"/><label class="note4"></label></td>
						</tr>
						<!-- 
						<tr>
							<td class="info_tit">验证码：</td>
							<td><input id="rand" type="text" name="rand" class="input_info2" style="vertical-align:middle;"/><span id="inrandSpan"><img  onclick=javascript:inrandrefresh(); alt=看不清，换一张图片 src="<%=basePath%>/image.jsp"></span> <font color="red"></font> </td>
						</tr>
						 -->
						<tr>
							<td colspan="2"  class="info_tit" style="text-align:center;height:35px;"><input type="submit" name="btntj" class="input_link" id="btnSubmit" value="提 交" onclick="return check();"/> <input type="reset" name="btnreset" class="input_link" id="btnset" value="重 置"/> </td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
	<div class="foot">
		<iframe src="<%=basePath%>/foot.html" width="1160" height="89" scrolling="no" frameborder="0" ></iframe>
	</div>
</div>
<s:if test="%{tip!=null}">
	<script>
		alert('${tip}');
	</script>
</s:if>
</body>
</html>
